#ifndef __MEMORY_H__
#define __MEMORY_H__
#include "main.h"


/*
 * Eeprom 
 * 
 */
 typedef enum
{
    ReadFlash_Byte = 0,
    ReadFlash_HalfWord,
    ReadFlash_Word,

} FLASH_ReadMode;
#define EPPROM_UNLOCK 0X9A
//#define EPPROM_WRITE_CMD 0X46
#define EPPROM_WRITE_CMD 0X42
#define EPPROM_LOCK 0XA9
#define EPPROM_READ_CMD 0X45
//#define EPPROM_READ_CMD 0X41
#define EEPROM_START_ADDR 0x00

void Memory_Copy( void  *p2tag, void  *p2src, uint16_t length );
void Memory_E2promWrite( uint32_t addr, void  *p2data, uint8_t length );
void Memory_E2promRead( uint32_t addr, void  *p2data, uint8_t length );
#endif    //#ifndef __MEMORY_H__
